//默认分页样式
export const pagination = {
    current: 1, //当前页码
    total: 0, // 总条数
    pageSize: 10, //每页中显示10条数据
    showTotal: total => `共${total} 条数据`, //分页中显示总的数据
    showSizeChanger: true,
}


export const articleTypeTable = [


    {
        width: 80,
        title: '#',
    },

    {
        title: '分类代码',
        dataIndex: "code",
        width: 250,

    },


    {
        title: '分类名称',
        dataIndex: "name",


    },


    {
        title: '创建时间',
        align: "left",
        dataIndex: 'createTime',
        width: 200,
    },


    {
        title: '操作',
        fixed: "right",
        width: 200,
        scopedSlots: {
            customRender: 'operation'
        }
    }
];


export const articleTable = [


    {
        title: '图文标题',
        dataIndex: "title",
        width: 250,

    },


    {
        title: '所属分类',
        dataIndex: "typeName",
        width: 250,

    },


    {
        title: '阅读次数',
        dataIndex: "read",
        width: 100,

    },


    {
        title: '分享参数',
        dataIndex: "share",
        width: 100,

    },


    {
        title: '创建时间',
        align: "left",
        dataIndex: 'createTime',
        width: 200,
    },


    {
        title: '操作',
        fixed: "right",
        width: 200,
        scopedSlots: {
            customRender: 'operation'
        }
    }
];


export const messageTable = [


    {
        title: '编号',
        dataIndex: "id",
        width: 180,

    },


    {
        title: '用户昵称',
        dataIndex: "vipName",
        width: 180,

    },


    {
        title: '用户电话',
        dataIndex: "vipPhone",
        width: 180,

    },


    {
        title: '留言类型',
        dataIndex: "type",
        width: 100,

    },



    {
        title: '留言内容',
        dataIndex: "content",
        ellipsis: true,

    },
    {
        title: '处理状态',
        dataIndex: "status",
        width: 100,
        scopedSlots: {
            customRender: 'status'
        }
    },


    {
        title: '创建时间',
        align: "left",
        dataIndex: 'createTime',
        width: 170,
    },


    {
        title: '操作',
        fixed: "right",
        align: "center",
        width: 100,
        scopedSlots: {
            customRender: 'operation'
        }
    }
];

